package com.twu.biblioteca;


public class Book extends Media{
    private final String title;

    public Book(String bookTitle) {
        super();
        title = bookTitle;
    }

    public String getTitle(){
        return title;
    }

    public String mediaStatus() {
        return this.getRenter() != null ?  " ["+this.status()+" TO: "+this.getRenter().getName()+"]" : " ["+this.status()+"]";
    }

    public String mediaTitles() {
        return this.getTitle()+mediaStatus();
    }

    public String checkoutReturnValue() {
        return "Thank you "+this.getRenter().getName()+"! Enjoy the book '"+this.getTitle()+"'";
    }

    public String returnMediaValue() {
        return "Thank you for returning the book '"+this.getTitle()+"'";
    }
}
